//
//  CountDown.h
//  countdownDemo
//
//  Created by wanglei on 17/3/9.
//  Copyright © 2017年 wanglei. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

@interface CountDown : NSObject
// 用NSDate日期倒计时
- (void)countDowmWithStratDate:(NSDate *)startDate finishDate:(NSDate *)finishDate completeBlock:(void (^)(NSInteger day,NSInteger hour,NSInteger minute,NSInteger second))completeBlock;

//用时间戳倒计时
- (void)countDownWithStartTimeStamp:(long long)starTimeStamp finishTimeStamp:(long long)finishTimeStamp completeBlock:(void (^)(NSInteger day,NSInteger hour,NSInteger minute,NSInteger second))completeBlock;

//每一秒走一次,回调block
- (void)countDownWithPER_SECBlock:(void (^)())PER_SECBlock;
- (void)destroyTimer;
-(NSDate *)dateWithLongLong:(long long)longlongValue;

@end
